package com.spring.Path;

import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;

import java.io.IOException;

/**
 * Created by dong peng on 2018/4/6.
 */
public class ResourceMatchTest {

    public static void main(String[] args) throws IOException {
        PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
        Resource[] resource = resolver.getResources("classpath*:spring-context.xml");
        for(Resource r : resource) {
            System.out.println(r.getFilename());
        }
    }
}
